package com.ys.entity.business;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_TimeCheck", catalog="Id")
public class TpTimeCheck extends BaseEntity<TpTimeCheck> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="BeginTime", nameJava="beginTime", typeDataBase="datetime")
	private Date beginTime;
	@YsField(nameDataBase="EndTime", nameJava="endTime", typeDataBase="datetime")
	private Date endTime;
	@YsField(nameDataBase="CountType", nameJava="countType", typeDataBase="tinyint")
	private Integer countType;
	@YsField(nameDataBase="OverDay", nameJava="overDay", typeDataBase="int")
	private Integer overDay;
	@YsField(nameDataBase="CountMonth", nameJava="countMonth", typeDataBase="varchar")
	private String countMonth;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpTimeCheck setId(Long id) {
		this.id = id;
		return this;
	}
	public String getCode() {
		return code;
	}
	public TpTimeCheck setCode(String code) {
		this.code = code;
		return this;
	}
	public Date getBeginTime() {
		return beginTime;
	}
	public TpTimeCheck setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
		return this;
	}
	public Date getEndTime() {
		return endTime;
	}
	public TpTimeCheck setEndTime(Date endTime) {
		this.endTime = endTime;
		return this;
	}
	public Integer getCountType() {
		return countType;
	}
	public TpTimeCheck setCountType(Integer countType) {
		this.countType = countType;
		return this;
	}
	public Integer getOverDay() {
		return overDay;
	}
	public TpTimeCheck setOverDay(Integer overDay) {
		this.overDay = overDay;
		return this;
	}
	public String getCountMonth() {
		return countMonth;
	}
	public TpTimeCheck setCountMonth(String countMonth) {
		this.countMonth = countMonth;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpTimeCheck setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpTimeCheck setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpTimeCheck setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpTimeCheck tpTimeCheck(
		String code,
		Date beginTime,
		Date endTime,
		Integer countType,
		Integer overDay,
		String countMonth,
		Integer status
			) {
		TpTimeCheck entity = new TpTimeCheck();
		entity.setCode(code);
		entity.setBeginTime(beginTime);
		entity.setEndTime(endTime);
		entity.setCountType(countType);
		entity.setOverDay(overDay);
		entity.setCountMonth(countMonth);
		entity.setStatus(status);
		return entity;
	}
}